﻿
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" href="img/icon.ico" />
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>文章</title>
        <!-- Bootstrap -->
    <link href="../bootstrap/css/bootstrap3.min.css" rel="stylesheet">
    <!-- <link href="css/download.css" rel="stylesheet"> -->
    <style media="screen">
      .article-box {padding: 15px;}
      p{width: 100%;word-wrap:break-word; text-align: left;}
      img{width: 100%;}
      #title {font-size: 22px;}
      #reading {color: #999;}
    </style>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  <!-- <div class="hei4"></div>
   <div class="dl">
   	<div class="logo l"><img src="images/dl_logo.png" alt=""></div>
   	<div class="center l">
   		<h5 style="color: #fff;">cncbk商旅网app下载 酒店、旅游、机票享积分赠送</h5>
   		<p>积分赠送～</p>
   	</div>
   	<a id="dLoad" class="dl-btn" href="#">打开</a>
   	<div class="closes r"><img src=" images/dl_close.png" alt=""></div>
   </div> -->
    <div class="container">
      <div class="row article-box">
        <span class="text-center" id="title"></span>
        <h5><small>发布时间:</small><small style="padding-left: 20px;"  class="text-right" id="time"></small></h5>
        <div class="article-con" id="content">
        </div>
        <span id="reading"></span>
      </div>
    </div>
    <script src="../js/jquery.min.js"></script>
    <script src="../js/service.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <!-- <script src="js/download.js"></script> -->
    <script type="text/javascript">
    $(document).ready(function() {
      function UrlSearch(){
           var name,value;
           var str=location.href; //取得整个地址栏;
           var num=str.indexOf("?")
           str=str.substr(num+1); //取得所有参数   stringvar.substr(start [, length ]

           var arr=str.split("&"); //各个参数放到数组里
           for(var i=0;i < arr.length;i++){
            num=arr[i].indexOf("=");
            if(num>0){
             name=arr[i].substring(0,num);
             value=arr[i].substr(num+1);
             this[name]=value;
             }
            }
        }
    var Request=new UrlSearch(); //实例化
    var id = Request.id;
    // var app = Request.app;
    // if (app == 1) {
    // 	$(".hei4").show();
    // 	$(".dl").show();
    // }

  	$.ajax({
          type: 'post',
          url: cncbk_common_tools.serverURL + '/wy3pt/ewArticle/queryByArticleId',
          data: {
              'articleId': id,
          },
          success: function(data) {
              var article=data.data;
               console.log(data)
            //   var time = getMyDate(article.createrTime);
              $("title").html(article.articleTitle)
              $("#title").append(article.articleTitle)
              $("#time").append(article.addTime)
              $("#content").append(article.text)
              $("#reading").append("阅读量："+article.articleClick);
          }
      });
  });
    </script>
  </body>
</html>
